package com.example.demo.entity.requestJson;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author : 洪俊新
 * @date : 2021/3/19 10:12
 * @description:
 */
@ApiModel("购买单章节请求类")
public class BuyOnrChapterReq {
    String bookId;
    String chapterId;
    String userId;
    /**
     * 消耗积分数量
     * isnull 0
     */        @ApiModelProperty(value="消耗积分数量", position=12)
    private Integer consumptionPoints;

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public String getChapterId() {
        return chapterId;
    }

    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getConsumptionPoints() {
        return consumptionPoints;
    }

    public void setConsumptionPoints(Integer consumptionPoints) {
        this.consumptionPoints = consumptionPoints;
    }

    @Override
    public String toString() {
        return "BuyOnrChapterReq{" +
                "bookId='" + bookId + '\'' +
                ", chapterId='" + chapterId + '\'' +
                ", userId='" + userId + '\'' +
                ", consumptionPoints=" + consumptionPoints +
                '}';
    }
}
